﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<% var lists = ((List<NxPartyAffairsOpen.Models.CategoryInfoModel>)ViewData["lists"]); var i = 0; %>
<ul>
    <% foreach (NxPartyAffairsOpen.Models.CategoryInfoModel item in lists)
       {
    %>
     
        <li  class="margin<%=i %>">
             
            <div class="BasePart">
                <ul class="Head02">
                    <li class="Title02">
                        <%=Html.ActionLink(item.DisplayName, "InfoList", "Portal", new { @categoryid = item.CategoryID }, new { @target = "_self" })%>
                    </li>
                    <li class="More">
                        <%=Html.ActionLink("[更多]", "InfoList", "Portal", new { @categoryid = item.CategoryID }, new { @target = "_self" })%>
                    </li>
                </ul>
                <div class="InfolistA4">
                    <ul>
                        <% 
                            var list = item.InformationList;
                            foreach (NxPartyAffairsOpen.Models.InformationModel info in list)
                            {  %>
                        <li>
                            <%=Html.ActionLink(info.Title, "Details", "Portal", new { @id = info.InfoGuid }, new { @title = info.Title, @target = "_self" })%>
                       <span>
                    <%=info.ShowTime.ToString("MM-dd") %></span> </li>
                        <%} %>
                    </ul>
                </div>
            </div>
        </li>
        <%
            i++;
       } %>
</ul>
